package com.ruoyi.mapper.jpjs.costcode;

import java.util.List;
import java.util.Map;

public interface CostCodeMapper {

    //查询所有成本编码
    List<Map<String, Object>> findCostCodeAll(Map<String, Object> map);

    //根据编码id查询成本编码
    Map<String, Object> findCostCode(String codeId);

    //查询祖辈列表
    String findAncestors(String codeId);

    //查询编码编号是否唯一
    int checkCodeNumUnique(Map<String, Object> map);

    //查询当前编码是否有下级元素
    int findChildLevel(String codeId);

    //添加成本编码
    int addCostCode(Map<String, Object> map);

    //修改成本编码
    int editCostCode(Map<String, Object> map);

    //删除成本编码
    int deleteCostCode(String codeId);

    //批量添加成本编码
    int addCostCodeList(List<Map<String, Object>> list);

    //查询编号编号是否存在
    String getCodeId(String codeNum);

    //批量更新成本特征
    int updateCodeFeature(List<Map<String, Object>> list);
}
